package FirstExampe.last;

public class NewPrice extends Price {
	@Override
	public double amount(int daysRented) {
		double result = 0;
		result += daysRented * 3;
		return result;
	}

	@Override
	public int frequent(int daysRented) {
		return daysRented > 1 ? 2 : 1;
	}
}
